<script>
/**
 * 修改密码
 * @returns
 */
function resetPassword(){
	if($("#pasff").form('enableValidation').form('validate')) {
		var param = {"password":$(":input[name='password']").val(), "repassword":$(":input[name='repassword']").val()};
		$.post("${basePath}/login/resetPassword", param, function(data) {
			if(data.result == "success") {
				$('#pasff').submit();
				location.href = "main";				
			}else {
				showWarnMsg(data.msg);
			}
		});
	}	
}

</script>
<!-- 修改密码 -->
<div id="formBox" class="easyui-window" title="修改密码" data-options="modal:true,closed:true" style="width:300px;height:165px;padding:15px;">
	<form id="pasff" class="easyui-form" action="" method="post">		
	 <table class="table2">	
		<tr>
	 		<th>
			<span>新密码：  </span> 
			</th>
		<td>	
			<input type="password"
				value="" name="password" id="password"/>
		</td>
		</tr>
		<tr>
			<th>
			<span >重复新密码：  </span> 
			</th>
		<td>
			<input type="password"
				value="" name="repassword" id="password"/>
		</td>
		</tr>
		</table>
		<div style="height: 50px; line-height: 50px; margin-top: 15px; border-top-color: rgb(231, 231, 231); border-top-width: 1px; border-top-style: solid;">
				   <a href="javascript:void(0)"
					style="background: rgb(0, 142, 173); padding: 7px 50px; border-radius: 4px; border: 1px solid rgb(26, 117, 152); border-image: none; color: rgb(255, 255, 255); font-weight: bold;"
					onclick="resetPassword()">确认</a>
					<a href="javascript:void(0)"
					style="background: rgb(0, 142, 173); padding: 7px 50px; border-radius: 4px; border: 1px solid rgb(26, 117, 152); border-image: none; color: rgb(255, 255, 255); font-weight: bold;"
					onclick="$('#formBox').window('close')">取消</a> 
					
		
		</div>
</form>
</div>